package com.zzyl.service;

import com.zzyl.base.PageBean;
import com.zzyl.dto.OrderQueryDto;
import com.zzyl.entity.Order;
import com.zzyl.vo.OrderVo;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {

    /**
     * 根据订单ID获取订单信息
     *
     * @param orderId 订单ID
     * @return 订单信息
     */
    OrderVo getOrderById(Long orderId);


    /**
     * 搜索订单
     *
     * @param dto 订单分页查询Dto
     * @return {@code PageBean<OrderVo> }
     * @author YiSheep
     */
    //PageBean<OrderVo> searchOrders(Integer status, String orderNo, String elderlyName, String creator, LocalDateTime startTime, LocalDateTime endTime, Integer page, Integer pageSize);
    PageBean<OrderVo> searchOrders(OrderQueryDto dto);
    /**
     * 根据客户id查询订单
     *
     * @param id
     * @return
     */
    List<OrderVo> listByMemberId(Long id);

    /**
     * 根据状态查询订单
     *
     * @param status
     * @return
     */
    List<Order> selectByStatus(Integer status);
}

